package com.dream.able;

import com.dream.pojo.MessageBoard;
import com.dream.pojo.MessageBoardExample;
import com.dream.pojo.MessageBoardSon;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MessageBoardMapper {
    int countByExample(MessageBoardExample example);

    int deleteByExample(MessageBoardExample example);

    int deleteByPrimaryKey(Integer mid);

    int insert(MessageBoard record);

    int insertSelective(MessageBoard record);

    List<MessageBoard> selectByExample(MessageBoardExample example);

    MessageBoard selectByPrimaryKey(Integer mid);

    int updateByExampleSelective(@Param("record") MessageBoard record, @Param("example") MessageBoardExample example);

    int updateByExample(@Param("record") MessageBoard record, @Param("example") MessageBoardExample example);

    int updateByPrimaryKeySelective(MessageBoard record);

    int updateByPrimaryKey(MessageBoard record);
    
    List<MessageBoardSon> listMessageBoard(MessageBoardExample example);
}